}
+/**
+ * Workaround for whinging GCCs, as suggested by strftime(3).
+ */
+static size_t my_strftime(char *s, size_t max, const char *fmt,
+ const struct tm *tm)
+{
+ return strftime(s, max, fmt, tm);
+}
+
+
/**
* Print the metrics for the given VM.
*/
char time[256];
struct tm *tm = localtime(&vm_metrics_record->last_updated);
- strftime(time, 256, "Metrics updated at %c, local time.\n", tm);
+ my_strftime(time, 256, "Metrics updated at %c, local time.\n", tm);
printf(time);
for (size_t i = 0; i < vm_metrics_record->vcpus_utilisation->size; i++)